package com.itheima.mapper;

import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface










MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> selectFirstMenu();

    List<Menu> selectByParentId(@Param("parentMenuId") Integer parentMenuId);

    int selectCountByParentId(@Param("parentMenuId") Integer parentMenuId);
}